import $http from "@/utils/request.js";


export function getUserInfo(data) {

	return $http({
		url: `/api/user/userInfo`,
		method: "post",
		data: data,
	});


}

export function addAddress(data) {

	return $http({
		url: `/api/user/addAddress`,
		method: "post",
		data: data,
	});


}

export function addressList(data) {

	return $http({
		url: `/api/user/addressList`,
		method: "post",
		data: data,
	});


}

export function getCityList(data) {

	return $http({
		url: `/api/ajax/getCityList`,
		method: "post",
		data: data,
	});


}

export function editAddress(data) {

	return $http({
		url: `/api/user/editAddress`,
		method: "post",
		data: data,
	});


}

export function delAddress(data) {

	return $http({
		url: `/api/user/delAddress`,
		method: "post",
		data: data,
	});


}

export function collectList(data) {

	return $http({
		url: `/api/user/collectList`,
		method: "post",
		data: data,
	});


}

export function getOrderList(data) {

	return $http({
		url: `/api/order/orderList`,
		method: "post",
		data: data,
	});


}

export function orderDetail(data) {

	return $http({
		url: `/api/order/orderDetail`,
		method: "post",
		data: data,
	});


}

export function reminder(data) {

	return $http({
		url: `/api/order/reminder`,
		method: "post",
		data: data,
	});


}

export function delivery(data) {

	return $http({
		url: `/api/order/delivery`,
		method: "post",
		data: data,
	});


}

export function cartList(data) {

	return $http({
		url: `/api/user/cartList`,
		method: "post",
		data: data,
	});


}

export function cartCreate(data) {

	return $http({
		url: `/api/order/cartCreate`,
		method: "post",
		data: data,
	});


}

export function orderPay(data) {

	return $http({
		url: `/api/order/orderPay`,
		method: "post",
		data: data,
	});


}

export function editInfo(data) {

	return $http({
		url: `/api/user/editInfo`,
		method: "post",
		data: data,
	});


}

export function delCollect(data) {

	return $http({
		url: `/api/user/collectDel`,
		method: "post",
		data: data,
	});


}